#pragma once

#include <QtGui/QMainWindow>

class QAction;
class QLabel;
class QMouseEvent;

class MainWindow : public QMainWindow
{
	Q_OBJECT
public:
	MainWindow(QWidget* parent = 0);
	~MainWindow();

	virtual bool eventFilter(QObject *, QEvent *);
	virtual void customEvent(QEvent *);
protected:
	virtual void mouseDoubleClickEvent(QMouseEvent *);
	virtual void paintEvent(QPaintEvent *);
private slots:
	void openFile();
private:
	QAction* m_openAction;
	QLabel* m_msgLabel;
};